import {Login, Home, dataOverview, behaviorAnalysis, eventAnalysis, funnelAnalysis, retainAnalysis, userRouteAnalysis, echartsDemo} from './route'
const routes = [
  {
    path: '/login',
    name: '登录',
    component: Login
  },
  {
    path: '/echarts',
    name: 'echarts展示',
    component: echartsDemo
  },
  {
    path: '/',
    component: Home,
    children: [
      {
        path: '',
        redirect: 'data-overview'
      },
      {
        path: 'data-overview',
        name: '数据概览',
        component: dataOverview
      },
      {
        path: 'behavior-analysis',
        name: '用户行为分析',
        component: behaviorAnalysis,
        children: [
          {
            path: 'event',
            name: '事件分析',
            component: eventAnalysis
          },
          {
            path: 'funnel',
            name: '漏斗分析',
            component: funnelAnalysis
          },
          {
            path: 'retain',
            name: '留存分析',
            component: retainAnalysis
          },
          {
            path: 'user-route',
            name: '用户路径',
            component: userRouteAnalysis
          }
        ]
      }
    ]
  }
]

export default routes
